From: Michael Albinus Date: Sun, 5 Aug 2007 12:46:33 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~421^2~17517 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=31c855e2a5015e9c0013d8f24bbc6eab7dc74112;p=emacs.git *** empty log message *** --- diff --git a/lisp/files.el b/lisp/files.el index e2cde74d6a1..3be6c2429cd 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -2314,7 +2314,7 @@ we don't actually set it to the same mode the buffer already has." (remote-id (file-remote-p buffer-file-name))) ;; Remove remote file name identification. (when (and (stringp remote-id) - (string-match remote-id name)) + (string-match (regexp-quote remote-id) name)) (setq name (substring name (match-end 0)))) ;; Remove backup-suffixes from file name. (setq name (file-name-sans-versions name))